package com.eduhzy.ttw.teacher.di.component;

import com.eduhzy.ttw.teacher.di.module.ContactModule;
import com.eduhzy.ttw.teacher.mvp.contract.ContactContract;
import com.eduhzy.ttw.teacher.mvp.ui.fragment.ContactFragment;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.di.scope.FragmentScope;

import dagger.BindsInstance;
import dagger.Component;

/**
 * @author xubo
 * @date 2018-7-20 14:48:38
 */
@FragmentScope
@Component(modules = ContactModule.class, dependencies = AppComponent.class)
public interface ContactComponent {
    void inject(ContactFragment fragment);

    @Component.Builder
    interface Builder {
        @BindsInstance
        ContactComponent.Builder view(ContactContract.View view);

        ContactComponent.Builder appComponent(AppComponent appComponent);

        ContactComponent build();
    }


}